//
//  NSObject+LogObj.h
//  XiaoOuiKankan
//
//  Created by shaowei on 11/7/13.
//  Copyright (c) 2013 Liu Stuart. All rights reserved.
//

#import <Foundation/Foundation.h>


#ifdef DEBUG

    void logProperty(id model);

    #define SWLogObjectAllProperty(obj) logProperty(obj)

    #define SWLogArrayAllItemAndProperty(array) \
        for (id temp in array) {\
            SWLogObjectAllProperty(temp);\
        }

    #define SWLogArrayAllItem(array) \
        for (id string in array) {\
            NSLog(@"%@",string);\
        }

#else
    #define SWLogObjectAllProperty(obj)
    #define SWLogArrayAllItemAndProperty(array)
    #define SWLogArrayAllItem(array)
#endif


